home *** CD-ROM | disk | FTP | other *** search
/ Software 2000 / Software 2000 Volume 1 (Disc 1 of 2).iso / utilities / u118.dms / in.adf / split / README < prev    next >
Encoding:
Text File  |  1990-12-06  |  1.2 KB  |  38 lines

  1. (c) 1990 S.Hawtin.
  2.  
  3.   This directory contains a simple program to split a large file into many 
  4. smaller ones, this allows you to edit large files then use join to stick 
  5. them back together again.
  6.  
  7.   The command has the form
  8.  
  9.     split [-c<count>][-l<lump_size>][-p<pattern>] source [dest]
  10.  
  11. the simplest for of the command is
  12.  
  13.     split foo
  14.  
  15. this will split the file "foo" into a set of files "split.0", "split.1", 
  16. "split.2" and so on, each file will contain 1000 characters from the file 
  17. "foo".  You can change the starting count with the "-c" flag and the size 
  18. of the files with the "-l" flag, so the command
  19.  
  20.     split -c100 -l6789 foo
  21.  
  22. will split the file into files "split.100", "split.101", "split.102" and so 
  23. on each file containing 6789 charcters.
  24.  
  25.   The root output name is set bey the "dest" argument, so
  26.  
  27.     split foo file.
  28.  
  29. will create the files "file.0", "file.1" and so on.
  30.  
  31.   The final, and most interesting bit of the program is the "-p" flag, this 
  32. gives a pattern that is used instead of a charcter count, so
  33.  
  34.     split "-pJIM 7" foo
  35.  
  36. will split the file each time it finds the string "JIM 7", placing the first 
  37. such segment into "split.0", the second into "split.1" and so on.
  38.